package com.atguigu.gmall.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 登录页控制器
 */
@Controller
public class LoginController {

    @GetMapping("/login")
    public String loginPage() {

        return "login"; //返回登录页 "classpath:/templates/" 自动拼前缀和 ".html"后缀
        //"classpath:/templates/"  + "login" + ".html"
    }
}
